﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace KInterfaces
{
    public enum AdministratorAction : int
    {
        None = -1,
        About = 0,
        Setting = 1,
        Exit = 2,
        Reboot = 3,
        Lock = 4,
        Shutdown = 5,
    }

    public enum PageTo : int
    {       
        Home = 0,
        Starting = 1,
        Next = 2,
        Last = 3,
        End = 4,
        LastToLast = 5,
        NextToNext = 6,
        Any = 7,
    }

    public enum ModuleAppTo : int
    {
        Home = 1,
        Default = 2,
        Any = 3,        
    }

    /// <summary>
    /// 业务状态描述
    /// </summary>
    public enum JobStatus : int
    {
        /// <summary>
        /// 为业务开始准备就绪
        /// </summary>
        Ready = 0,

        /// <summary>
        /// 已启动
        /// </summary>
        Started = 1,
        
        /// <summary>
        /// 业务被中止（因为异常或者未明原因导致的意外退出）
        /// </summary>
        Aborted = -13,
        
        /// <summary>
        /// 用户主动取消的业务
        /// </summary>
        Cancelled = -12,
      
        /// <summary>
        /// 因为发生明确的错误而导致的业务中止
        /// </summary>
        Error = -15,
        
        /// <summary>
        /// 业务正常完成
        /// </summary>
        Completed = 10,
    }
}
